package com.bonc.ioc.service;

import com.bonc.ioc.base.page.PageData;
import com.bonc.ioc.base.page.PageResult;
import com.bonc.ioc.common.util.AppReply;
import com.bonc.ioc.vo.StandardVo;
import org.springframework.validation.BindException;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
 * @version 1.0
 * @description:
 * @author: wangqinglin
 * @date: 2021/3/18 11:06
 * @change : 2021/3/18 11:06 by q8541q@163.com  for init
 */
public interface StandardService {


    int deleteByPrimaryKey(String id);

    int save(StandardVo record);

    StandardVo selectByPrimaryKey(Long id);


    /**
     * 获取标准分页数据
     *
     * @param pageData
     * @return
     */
    PageResult selectStandardInfoByPage(PageData pageData) throws BindException;


    PageResult selectStandardInfoShowByPage(PageData pageData, String sjbs) throws BindException;

    List<StandardVo> queryStandRanking(Integer id);

    void downloadStandModel(String id) throws IOException;

    List<StandardVo> getAssociationInfo(String query) throws IOException;

    PageResult getAssociationInfo2(PageData query);

    List<StandardVo> getAssociationInfo3(String query);


    String importBasicInfoByExcel(List<List<String>> lists, String id, String basicId);

    List<Map> picChart();

    List<Map> cylindricalChart();


    void downloadStandModelAll(HttpServletResponse response);

    AppReply importExcelAll(MultipartFile file);

    void downloadSql(HttpServletResponse response);

    void importSql(MultipartFile file) throws IOException;


}
